public void AddEmployer(ViewEmployers employe) { Employe _employe = new Employe() { DepartamentId = employe.DepartamentId, EmployeFullName = employe.EmployeFullName, MoneyProfit = employe.MoneyProfit, Month = employe.Month, Premials = employe.Premials, Qualification = employe.Qualification }; db.Employers.Add(_employe); db.SaveChanges(); }
public IActionResult PutEmployeToServer([FromBody] ViewEmployers employeData) { dbService.AddEmployer(employeData); return(Ok()); }