public IActionResult GetCompanyService() { var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); var tableModel = new DataTablesAjaxRequestModel(Request); var model = new CompanyServiceViewModel(); var company = model.GetCompany(userId); var data = model.GetCompanyServices(tableModel, company); return(Json(data)); }
public IActionResult Index() { var model = new CompanyServiceViewModel(); return(View(model)); }