Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public IActionResult PutEmployeToServer([FromBody] ViewEmployers employeData)
 {
     dbService.AddEmployer(employeData);
     return(Ok());
 }