Ejemplo n.º 1
0
        public JsonResult AddSessionInvoice(SessionInvoice sessionInvoice)
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            _session.AddSessionInvoice(userId, concernId, sessionInvoice);
            var sessions = _session.ResponseSessions(1, 1);
            SessionViewModels viewModels = new SessionViewModels()
            {
                ResponseSessions = sessions
            };

            return(Json(viewModels, JsonRequestBehavior.AllowGet));
        }