public ActionResult AddItemToOrder(AddItemToOrderModel obj) { MessageModel model = new MessageModel(); OrderBusinessLogic objOrderBusinessLogic = new OrderBusinessLogic(); try { objOrderBusinessLogic.AddItemToOrder(obj); model.Message = "Item added in Order successfully"; } catch (System.Exception ex) { model.Message = "An error has occured while adding Item to Order"; model.Type = Enumeration.MessageType.Error; logger.Error(model.Message, ex); } var response = new { //Status = updatedStatus, MessageModel = model }; return(Json(response, JsonRequestBehavior.AllowGet)); }