diff --git a/Marco.Pms.Services/Controllers/AppMenuController.cs b/Marco.Pms.Services/Controllers/AppMenuController.cs index 8818f98..7a52af3 100644 --- a/Marco.Pms.Services/Controllers/AppMenuController.cs +++ b/Marco.Pms.Services/Controllers/AppMenuController.cs @@ -576,7 +576,9 @@ namespace Marco.Pms.Services.Controllers ProjectManagement, new List { new MasterMenuVM { Id = 3, Name = "Work Category" }, - new MasterMenuVM { Id = 8, Name = "Services" } + new MasterMenuVM { Id = 8, Name = "Services" }, + new MasterMenuVM { Id = 12, Name = "Requisition Status" }, + new MasterMenuVM { Id = 13, Name = "Purchase Order Status" } } }, { @@ -591,7 +593,7 @@ namespace Marco.Pms.Services.Controllers { new MasterMenuVM { Id = 6, Name = "Expense Type" }, new MasterMenuVM { Id = 7, Name = "Payment Mode" }, - new MasterMenuVM { Id = 10, Name = "Payment Adjustment Head" } + new MasterMenuVM { Id = 11, Name = "Payment Adjustment Head" } } } }; diff --git a/Marco.Pms.Services/Controllers/MasterController.cs b/Marco.Pms.Services/Controllers/MasterController.cs index 04ee6f9..a60a47b 100644 --- a/Marco.Pms.Services/Controllers/MasterController.cs +++ b/Marco.Pms.Services/Controllers/MasterController.cs @@ -997,7 +997,7 @@ namespace Marco.Pms.Services.Controllers } [HttpPost("requisition-status/create")] - public async Task CreateRequisitionStatus([FromForm] RequisitionStatusDto model) + public async Task CreateRequisitionStatus([FromBody] RequisitionStatusDto model) { var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync(); var response = await _masterService.CreateRequisitionStatusAsync(model, loggedInEmployee, tenantId); @@ -1005,7 +1005,7 @@ namespace Marco.Pms.Services.Controllers } [HttpPut("requisition-status/edit/{id}")] - public async Task UpdateRequisitionStatus(Guid id, [FromForm] RequisitionStatusDto model) + public async Task UpdateRequisitionStatus(Guid id, [FromBody] RequisitionStatusDto model) { var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync(); var response = await _masterService.UpdateRequisitionStatusAsync(id, model, loggedInEmployee, tenantId); @@ -1041,7 +1041,7 @@ namespace Marco.Pms.Services.Controllers } [HttpPost("purchase-order-status/create")] - public async Task CreatePurchaseOrderStatus([FromForm] PurchaseOrderStatusDto model) + public async Task CreatePurchaseOrderStatus([FromBody] PurchaseOrderStatusDto model) { var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync(); var response = await _masterService.CreatePurchaseOrderStatusAsync(model, loggedInEmployee, tenantId); @@ -1049,7 +1049,7 @@ namespace Marco.Pms.Services.Controllers } [HttpPut("purchase-order-status/edit/{id}")] - public async Task UpdatePurchaseOrderStatus(Guid id, [FromForm] PurchaseOrderStatusDto model) + public async Task UpdatePurchaseOrderStatus(Guid id, [FromBody] PurchaseOrderStatusDto model) { var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync(); var response = await _masterService.UpdatePurchaseOrderStatusAsync(id, model, loggedInEmployee, tenantId); diff --git a/Marco.Pms.Services/Service/MasterService.cs b/Marco.Pms.Services/Service/MasterService.cs index 903be0a..1c331d0 100644 --- a/Marco.Pms.Services/Service/MasterService.cs +++ b/Marco.Pms.Services/Service/MasterService.cs @@ -3579,6 +3579,12 @@ namespace Marco.Pms.Services.Service #endregion + #region =================================================================== Requisition Status APIs =================================================================== + #endregion + + #region =================================================================== Requisition Status APIs =================================================================== + #endregion + #region =================================================================== Helper Function =================================================================== private static object ExceptionMapper(Exception ex) {