예제 #1
0
 public ActionResult EditPartial(ColorCode color)
 {
     color.Status     = "Active";
     color.modifiedOn = DateTime.Now;
     _ColorCodeService.Update(color);
     return(RedirectToAction("Details/" + color.colorId, "ColorCode"));
 }
 public async Task <IActionResult> Update(ColorCodeDto colorCodeIngredientDto)
 {
     if (await _colorCodeService.Update(colorCodeIngredientDto))
     {
         return(NoContent());
     }
     return(BadRequest($"Updating colorCode {colorCodeIngredientDto.ID} failed on save"));
 }