public async Task <Student> CreateAsync(Student enity) { try { var res = await _ctx.AddAsync(enity); await _ctx.SaveChangesAsync(); return(res.Entity); } catch (Exception ex) { throw ex; } }
public async Task <Student> CreateAsync(Student enity) { try { var res = await _ctx.AddAsync(enity); await _ctx.SaveChangesAsync(); return(res.Entity); } catch (Exception ex) { throw ex; } }