Exemple #1
0
        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()));
        }
Exemple #2
0
 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));
 }