public IHttpActionResult GetAllEmployeeByCompanyId()
        {
            int           companyId = Global.GetCompanyIdFromToken();
            EmployeeModel model     = new EmployeeModel();

            return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(companyId)));
        }
Beispiel #2
0
        public IHttpActionResult GetAllEmployeeByCompanyId(int id)
        {
            EmployeeModel model = new EmployeeModel();

            return(Content(HttpStatusCode.OK, model.GetAllByCompanyId(id)));
        }