Refactored DTOs to use AutoMapper instead of manual mapping and made some additional improvements and fixes. Added : GetAllSurveys&DeleteUser.
16 lines
304 B
C#
16 lines
304 B
C#
using AutoMapper;
|
|
using survey_beta.DTOs.Default;
|
|
using survey_beta.DTOs.Response;
|
|
using survey_beta.Models;
|
|
|
|
namespace survey_beta.Mappers.Profiles
|
|
{
|
|
public class ChoiceProfile : Profile
|
|
{
|
|
public ChoiceProfile()
|
|
{
|
|
CreateMap<Choice, ChoiceDto>();
|
|
}
|
|
}
|
|
}
|