Fix Update Function for DosenApiController