public async Task <IActionResult> PutGroupUpdate(int id, data.GroupUpdate groupUpdate) { if (id != groupUpdate.GroupUpdateId) { return(BadRequest()); } try { new BS.GroupUpdate(_context).Update(groupUpdate); } catch (Exception ee) { if (!GroupUpdateExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <data.GroupUpdate> > PostGroupUpdate(data.GroupUpdate groupUpdate) { new BS.GroupUpdate(_context).Insert(groupUpdate); return(CreatedAtAction("GetGroupUpdate", new { id = groupUpdate.GroupUpdateId }, groupUpdate)); }