Exemple #1
0
        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));
        }
Exemple #3
0
 public bool Handle(UpdateLocationDetailsCommand cmd) => PersonalDetails.Handle(cmd);
Exemple #4
0
 public bool Handle(UpdateLocationDetailsCommand cmd) => Location.Handle(cmd);