public async Task <IActionResult> UpdateAddmins(int id, Addmin addmin) { if (id != addmin.AddminId) { return(BadRequest()); } return(Ok(await _context.UpdateAddminAsync(addmin))); }
public void AddTaiKhoan(string usename, string password) { Addmin am = new Addmin(); am.UserName = usename; am.Password = password; login.Addmins.InsertOnSubmit(am); login.SubmitChanges(); }
public Task <Addmin> UpdateAddminAsync(Addmin addmin) { throw new NotImplementedException(); }
public async Task <IActionResult> CreateAddmins([FromBody] Addmin addmin) { return(Ok(await _context.CreateAddminAsync(addmin))); }