Beispiel #1
0
 public string ApproveOtherExpenseForMobile(OtherExpense otherExpenseObj)
 {
     try
     {
         if (otherExpenseObj.ID != Guid.Empty && otherExpenseObj.ID != null)
         {
             string resultMessage = _otherExpenseBusiness.ApproveOtherExpense(otherExpenseObj.ID);
             return(JsonConvert.SerializeObject(new { Result = true, Message = resultMessage }));
         }
         else
         {
             throw new Exception("Invalid Input");
         }
     }
     catch (Exception ex)
     {
         return(JsonConvert.SerializeObject(new { Result = false, Message = ex.Message }));
     }
 }