UpdateItemImage Method

TriCodeTest

MenuCreationController..::..UpdateItemImage Method

Update a menu item with a new image. Takes the id of the menu item to update, and a base64 image string and converts that string to a byte array to store in in the database.

Namespace:  TriCodeTest.Controllers
Assembly:  TriCodeTest (in TriCodeTest.dll)

Syntax


[HttpPostAttribute]
public Task<ActionResult> UpdateItemImage(
	int id,
	string img
)

Parameters

id
Type: Int32
Id of the menu item to update
img
Type: String
A base64 image string

Return Value

Returns true when update is complete