// [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Write" })] public IActionResult AddUpdate(HolidayViewModel model) { // Inserts or Udates Data if (ModelState.IsValid) { return(Json(_interface.AddUpdate(model.holyday))); } else { resp.Message = Constants.ControllerMessage.All_Fields_Mandatory; return(Json(resp)); } }