public bool Handle(UpdateLocationDetailsCommand cmd) { Country = cmd.Country; City = cmd.City; StateProvince = cmd.StateProvince; return(Country == cmd.Country && City == cmd.City && StateProvince == cmd.StateProvince); }
public async Task <IActionResult> UpdateLocation(string profileId, [FromBody] UpdateLocationDetailsCommand dto) { dto.ProfileId = profileId; var result = await _mediator.Send(dto); if (string.IsNullOrEmpty(result)) { return(NotFound()); } var profile = await _mediator.Send(new GetAppProfileByProfileIdQuery(profileId)); return(Ok(profile)); }
public bool Handle(UpdateLocationDetailsCommand cmd) => PersonalDetails.Handle(cmd);
public bool Handle(UpdateLocationDetailsCommand cmd) => Location.Handle(cmd);