public async Task <object> UpdateIncrementByID(Guid businessID, Guid incrementID, IncrementsUpdateModel incrementsUpdateModel) { var checkBusinessId = await _commonLogic.CheckBusinessID(businessID); if (checkBusinessId) { var checkIncrementId = await _commonLogic.CheckIncrementID(businessID, incrementID); if (checkIncrementId) { var errors = _incrementsValidation.ValidateUpdateIncrementData(incrementsUpdateModel); if (errors != null) { return(errors); } await _incrementsLogic.UpdateIncrementByID(businessID, incrementID, incrementsUpdateModel); return(_incrementsValidation.IncrementUpdatedSuccess()); } return(_commonValidation.IncrementIdNotExists(incrementID)); } return(_commonValidation.BusinessIdNotExists(businessID)); }