public JsonResult Remove(int id) { var check = new UserForeignLanguageDao().Remove(id); return(Json(new { status = check })); }
public JsonResult Modify(int id, int languegeId, string level, string description) { var ufInsert = new UserForeignLanguage(); ufInsert.LanguageID = languegeId; ufInsert.LanguageLevel = level; if (description != null && description != "") { ufInsert.Description = description; } var check = new UserForeignLanguageDao().Modify(id, ufInsert); return(Json(new { status = check })); }