Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
using System.Net;
using Web.Api.Core.Dto.UseCaseResponses;
using Web.Api.Core.Interfaces;
using Web.Api.Serialization;
namespace Web.Api.Presenters
public sealed class RegisterUserPresenter : IOutputPort<RegisterUserResponse>
public JsonContentResult ContentResult { get; }
public RegisterUserPresenter()
ContentResult = new JsonContentResult();
public void Handle(RegisterUserResponse response)
ContentResult.StatusCode = (int)(response.Success ? HttpStatusCode.OK : HttpStatusCode.BadRequest);
ContentResult.Content = JsonSerializer.SerializeObject(response);