示例#1
0
        public JsonResult FetchEmail(int ID, int?ReminderID)
        {
            var Email = ReminderService.GetEmail(ID);
            var used  = ReminderService.CheckUsedEmployee(ID, ReminderID);

            //return an object
            return(Json(new { Email = Email, CanBeUsed = !used }, JsonRequestBehavior.AllowGet));
        }