public string GetExpenseDetailsForMobile(OtherExpense expObj) { try { if (expObj == null) { throw new Exception(messages.NoItems); } List <OtherExpenseViewModel> expenseObj = Mapper.Map <List <OtherExpense>, List <OtherExpenseViewModel> >(_otherExpenseBusiness.GetExpenseTypeDetails(expObj)); return(JsonConvert.SerializeObject(new { Result = true, Records = expenseObj })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { Result = false, Message = ex.Message })); } }