Esempio n. 1
0
 public IHttpActionResult AddWorkFlowDetails(int permissionId)
 {
     try
     {
         if (HttpContext.Current.User.Identity.IsAuthenticated)
         {
             var permission = _workFlowRepository.AddWorkFlowDetails(permissionId);
             return(Ok(permission));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception ex)
     {
         _errorLog.LogException(ex);
         throw;
     }
 }