public async Task <IActionResult> InsertAsync([FromBody] AwrMaef awrMaef)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await _service.InsertAsync(awrMaef);

            await _service.SaveChangesAsync();

            return(Ok());
        }
示例#2
0
 public void Update(AwrMaef awrMaef)
 {
     awrMaefRepo.Update(awrMaef);
 }
示例#3
0
 public void Delete(AwrMaef awrMaef)
 {
     awrMaefRepo.Delete(awrMaef);
 }
示例#4
0
 public async Task InsertAsync(AwrMaef awrMaef)
 {
     await awrMaefRepo.InsertAsync(awrMaef);
 }