public EmployeeProfessionItemResponse Create(EmployeeProfessionItemViewModel EmployeeItemViewModel) { EmployeeProfessionItemResponse response = new EmployeeProfessionItemResponse(); try { var addedEmployeeItem = unitOfWork.GetEmployeeProfessionRepository().Create(EmployeeItemViewModel.ConvertToEmployeeProfession()); unitOfWork.Save(); response.EmployeeProfessionItem = addedEmployeeItem.ConvertToEmployeeProfessionViewModel(); response.Success = true; } catch (Exception ex) { response.EmployeeProfessionItem = new EmployeeProfessionItemViewModel(); response.Success = false; response.Message = ex.Message; } return(response); }