public List <DtoAuthor> GetAuthors() { return(_authorDm.GetAuthors()); }
public JsonResult GetAuthors(DataTableInfoVM model) { var result = authorDM.GetAuthors(model, out int total, out int filtered); return(Json(new { draw = model.Draw, recordsFiltered = filtered, recordsTotal = total, data = result })); }