コード例 #1
0
 public IHttpActionResult AddIssueInventoryRecordDetails(IssueInventoryAc issueInventoryDetails)
 {
     try
     {
         if (HttpContext.Current.User.Identity.IsAuthenticated)
         {
             var inventoryRecordDetails = _inventoryRepository.AddIssueInventoryRecordDetails(issueInventoryDetails, MerchantContext.UserDetails.Id, MerchantContext.CompanyDetails);
             return(Ok(inventoryRecordDetails));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception ex)
     {
         _errorLog.LogException(ex);
         throw;
     }
 }