Пример #1
0
        public async Task <IHttpActionResult> SubmitEmployee(Employee employee)
        {
            bool isSubmited;

            if (employee.Id == 0)
            {
                isSubmited = await _genericBusiness.CreateEmployee(employee);
            }
            else
            {
                isSubmited = await _genericBusiness.UpdateEmployee(employee);
            }
            return(Ok(isSubmited));
        }