Exemple #1
0
        public JsonResult EditCustomerModules(int licenseId, ModuleInfo[] modules, string startDate = "")
        {
            var date         = DateTime.Now;
            var selectedDate = startDate.Split('.');

            if (int.Parse(selectedDate[1]) < date.Year || (int.Parse(selectedDate[1]) == date.Year && int.Parse(selectedDate[0]) < date.Month))
            {
                return(Json("Invalid date"));
            }
            return(Json(licenseService.EditCustomerModules(licenseId, modules, startDate)));
        }