public TypeOfPostCreatedConfirmation CreateType(TypeOfPost Type) { var newType = dbContext.Add(Type); dbContext.SaveChanges(); return(autoMapper.Map <TypeOfPostCreatedConfirmation>(Type)); }
public TypeOfPostCreatedConfirmation CreateType(TypeOfPost Type) { TypeOfPostCreatedConfirmation type = typeRepository.CreateType(Type); return(type); }