Exemple #1
0
 public async Task <IActionResult> PutByNumber(string key, [FromBody] EmployeeGroupMIS uEmployeeGroupMis)
 {
     if (uEmployeeGroupMis != null)
     {
         return(new JsonResult(await this.repository.UpdateAsync(uEmployeeGroupMis, key), this.DefaultJsonSettings));
     }
     return(NotFound(new { Error = "EmployeeGroup not found. " }));
 }
Exemple #2
0
 public async Task <IActionResult> Post([FromBody] EmployeeGroupMIS nEmployeeGroupMis)
 {
     if (nEmployeeGroupMis != null)
     {
         return(new JsonResult(await this.repository.AddAsync(nEmployeeGroupMis), this.DefaultJsonSettings));
     }
     return(NotFound(new { Error = "EmployeeGroup not found. " }));
 }