Exemple #1
0
        public async Task <IHttpActionResult> CreateEmpType(CreateEmployeeTypeViewModel model)
        {
            if (ModelState.IsValid)
            {
                await SystemManager.CreateEmployeeType(model.Name);

                return(this.SendData(""));
            }
            else
            {
                return(this.ErrorData("数据有误"));
            }
        }