public async Task <object> UpdateDeductionByID(Guid businessID, Guid deductionID, [FromBody] UpdateDeductionModel updateDeductionModel) { var checkBusinessId = await _commonLogic.CheckBusinessID(businessID); if (checkBusinessId) { var checkDeductionId = await _commonLogic.CheckDeductionID(businessID, deductionID); if (checkDeductionId) { var errors = _deductionValidation.ValidateUpdateDeductionData(updateDeductionModel); if (errors != null) { return(errors); } await _deductionLogic.UpdateDeductionByID(businessID, deductionID, updateDeductionModel); return(_deductionValidation.DeductionUpdatedSuccess()); } return(_commonValidation.DeductionIdNotExists(deductionID)); } return(_commonValidation.BusinessIdNotExists(businessID)); }