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