public async Task <IActionResult> PutTblMasterCompanyProfile(int id, TblMasterCompanyProfile tblMasterCompanyProfile) { if (id != tblMasterCompanyProfile.CompanyProfileId) { return(BadRequest()); } _context.Entry(tblMasterCompanyProfile).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblMasterCompanyProfileExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <TblMasterCompanyProfile> > PostTblMasterCompanyProfile(TblMasterCompanyProfile tblMasterCompanyProfile) { _context.TblMasterCompanyProfile.Add(tblMasterCompanyProfile); await _context.SaveChangesAsync(); return(CreatedAtAction("GetTblMasterCompanyProfile", new { id = tblMasterCompanyProfile.CompanyProfileId }, tblMasterCompanyProfile)); }