Пример #1
0
        public async Task Update(string clientId, ClientProfileUpdateDto dto)
        {
            EnsureModelValid(dto);

            ClientProfile profile = await FindByClientId(clientId, tracking : true, throwsIfNotFound : true);

            profile.FaviconLocalUrl = dto.FaviconLocalUrl;
            profile.FaviconUrl      = dto.FaviconUrl;
            await _clientRepository.SaveChangesAsync();
        }
        public async Task <IActionResult> Update(string clientId, [FromBody] ClientProfileUpdateDto form)
        {
            await _clientProfileService.Update(clientId, form);

            return(NoContent());
        }