public ActionResult Add(string key) { var model = new AddMinute(); try { if (key != Keyapi) { return(Json(0, JsonRequestBehavior.AllowGet)); } UpdateModel(model); model.IsDeleted = false; model.DateCreated = DateTime.Now.TotalSeconds(); model.Name = HttpUtility.UrlDecode(model.Name); _da.Add(model); _da.Save(); return(Json(model.ID, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(0, JsonRequestBehavior.AllowGet)); } }
public void Delete(AddMinute items) { FDIDB.AddMinutes.Remove(items); }
public void Add(AddMinute items) { FDIDB.AddMinutes.Add(items); }