Validating the Registration

Follow these steps to validate the registration:

  1. We do our service implementations in Services/Core folder. Our service implementation is as follows:
Go to https://goo.gl/Xxv3kj to access the code.
using RestBuy.Application.ViewModels;using RestBuy.Application.Repos;using RestBuy.Application.Services.Queries;using System.ComponentModel.DataAnnotations;using System.Threading;using System.Threading.Tasks;using RestBuy.Application.Services;namespace Restbuy.Application.Services.Core{  public class RestBuyRegistrationService : IRegistrationService  {    readonly IUserRepo userRepo;    readonly IUoW uow;......  }}

At the constructor, our Unit of Work is injected. Then we fulfil our interface contract. By using validation ...

Get ASP.NET Core 2 Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.