public async Task <IActionResult> InsertAsync([FromBody] AwrMaef awrMaef) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _service.InsertAsync(awrMaef); await _service.SaveChangesAsync(); return(Ok()); }
public void Update(AwrMaef awrMaef) { awrMaefRepo.Update(awrMaef); }
public void Delete(AwrMaef awrMaef) { awrMaefRepo.Delete(awrMaef); }
public async Task InsertAsync(AwrMaef awrMaef) { await awrMaefRepo.InsertAsync(awrMaef); }