public IHttpActionResult GetAllEmployeeByCompanyId() { int companyId = Global.GetCompanyIdFromToken(); EmployeeModel model = new EmployeeModel(); return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(companyId))); }
public IHttpActionResult GetAllEmployeeByCompanyId(int id) { EmployeeModel model = new EmployeeModel(); return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(id))); }