public IActionResult Update([FromBody] CrudViewModel <BSLDNAExt_FLUOstarOmega> payload) { BSLDNAExt_FLUOstarOmega bSLDNAExt_FLUOstarOmega = payload.value; _context.BSLDNAExt_FLUOstarOmega.Update(bSLDNAExt_FLUOstarOmega); _context.SaveChanges(); return(Ok(bSLDNAExt_FLUOstarOmega)); }
public IActionResult Remove([FromBody] CrudViewModel <BSLDNAExt_FLUOstarOmega> payload) { BSLDNAExt_FLUOstarOmega bSLDNAExt_FLUOstarOmega = _context.BSLDNAExt_FLUOstarOmega .Where(x => x.LogId == (long)payload.key) .FirstOrDefault(); _context.BSLDNAExt_FLUOstarOmega.Remove(bSLDNAExt_FLUOstarOmega); _context.SaveChanges(); return(Ok(bSLDNAExt_FLUOstarOmega)); }