public IActionResult Put(int id, [FromBody] Pallet model) { if (ModelState.IsValid) { model.PalletId = id; _repository.Update(model); return(Ok(model)); } else { return(new ResponseResult(Response) { StatusCode = (int)StatusCodes.Status400BadRequest, ResponseObject = ModelState.ToJson() }.ToJsonResult()); } }
public static void Update(Pallet obj) { repository.Update(obj); }
public bool Update(int PalletId, string PalletName, int YardLocationId) { return(repository.Update(PalletId, PalletName, YardLocationId)); }