public async Task <ActionResult> Update(int id) { GetPromulgateStatusByIdDto getPromulgateStatusByIdDto = await Mediator.Send(new GetPromulgateStatusByIdQuery { Id = id }); return(View(getPromulgateStatusByIdDto.ToPromulgateStatusUpdateModel())); }
public static PromulgateStatusUpdateModel ToPromulgateStatusUpdateModel(this GetPromulgateStatusByIdDto dto) { return(dto.MapTo <GetPromulgateStatusByIdDto, PromulgateStatusUpdateModel>()); }