Exemplo n.º 1
0
 private string Approve(int id, int stateId,  string approvedBy, Lga e = null)
 {
     var entity = e ?? _repository.Find(id);
     entity.IsApproved = entity.IsActive = true;
     _repository.Update(entity);
     return null;
 }
Exemplo n.º 2
0
 private string Approve(LgaApprovalModel model, string approvedBy, string processRefId, Lga entity = null)
 {
      
     var user = _userProfileService.GetUserProfile(approvedBy);
     if (_approvalService.ApproveProcess(user.Id, processRefId, user.WorkFlowRefId, model.Comment) ==
         null)
         return Approve((int) model.LgaId, (int)model.StateId, approvedBy);
     return null;
 }