public void Create(string code, string name, string desc, string facultycode) { var obj = new GENRE_OBJ(code, name, desc, facultycode); var bus = new GENRE_BUS(); bus.CreateGenre(obj); }
public void Edit(string code, string newcode, string name, string desc, string facultycode) { var obj = new GENRE_OBJ(code, name, desc, facultycode); var bus = new GENRE_BUS(); bus.UpdateGenre(code, obj); }
public JsonResult GetDataByCodeView(string codeview) { var bus = new GENRE_BUS(); var obj = (GENRE_OBJ)bus.GetGenre(codeview)[0]; return(Json(obj)); }
public JsonResult GetDataByKey(string key, string facultycode) { var bus = new GENRE_BUS(); var model = bus.GetGenreList(key, facultycode); return(Json(new { data = model })); }
public void Delete(string codeview) { var bus = new GENRE_BUS(); bus.DeleteGenre(codeview); }