public HttpResponseMessage InsertCompanyEmploye(Company_Employe companyemploye) { companyemploye.Id = Guid.NewGuid(); var result = _companyEmployeService.InsertCompanyEmploye(companyemploye); return(result ? toJson(null, OperatingState.Success, "添加成功") : toJson(null, OperatingState.Failure, "添加失败")); }
public bool InsertCompanyEmploye(Company_Employe company_employe) { if (company_employe == null) { throw new ArgumentNullException("company_employe is null"); } bool result = _companyEmployeRepository.Insert(company_employe); return(result); }
public HttpResponseMessage UpdateCompanyEmploye(Company_Employe companyemploye) { var result = _companyEmployeService.UpdateCompanyEmploye(companyemploye); return(result ? toJson(null, OperatingState.Success, "修改成功") : toJson(null, OperatingState.Failure, "修改失败")); }