public JsonResult Carries(int senderId, listOrders request) { var ids = request.CheckItems.GetCheckedIds(); StringBuilder sb = new StringBuilder(); foreach (var id in ids) { request.Carry(id, senderId); sb.Append(request.GetMessages().FirstOrDefault().Messages); } return(Json(sb.ToString())); }
public JsonResult Carry(int id, int senderId, listOrders request) { request.Carry(id, senderId); //var msg = request.GetMessages(MessageType.Error); return(Json(request.GetMessages().FirstOrDefault().Messages)); }