Пример #1
0
        public JsonResult GetDayAttendance2(int year, int month, int day, string id)
        {
            var success = true;
            var message = string.Empty;
            var bll     = new WorkmeetingBLL();
            var data    = default(DayAttendanceEntity);

            try
            {
                data = bll.GetDayAttendance4(id, new DateTime(year, month, day));
            }
            catch (Exception ex)
            {
                success = false;
                message = HttpUtility.JavaScriptStringEncode(ex.Message);
            }

            return(Json(new { success, message, data }, JsonRequestBehavior.AllowGet));
        }