I am creating my first Create/Edit Modal
I keep on getting ar error on the following line: var project = input.MapTo<Project>();
I have confirmed there is definitely data that is populated in input
public class CreateOrUpdateProjectDto
{
public ProjectEditDto Project { get; set; }
}
[AutoMapFrom(typeof(Project))]
public class ProjectEditDto
{
public int? Id { get; set; }
public string Name { get; set; }
public string Summary { get; set; }
public string ProjectNumber { get; set; }
public string FinanceReference { get; set; }
public DateTime? RegistrationDateTime { get; set; }
public DateTime? StartonSiteDateTime { get; set; }
public DateTime? ActualCompletionDateTime { get; set; }
public DateTime? EstimatedCompletionDateTime { get; set; }
public string ProjectGuid { get; set; }
public int? ProjectTypeId { get; set; }
public string ProjectTypeType { get; set; }
public string ProjectTypeText { get; set; }
}
[AbpAuthorize(AppPermissions.Pages_Tenant_Projects_Create)]
public async Task CreateOrUpdateProject(CreateOrUpdateProjectDto input)
{
if (!input.Project.Id.HasValue)
{
await CreateProjectAsync(input);
}
else
{
await EditProjectAsync(input);
}
}
protected virtual async Task CreateProjectAsync(CreateOrUpdateProjectDto input)
{
var project = input.MapTo<Project>();
await _projectRepository.InsertAsync(project);
}
Hi,
Anyone setup internal mailing features that you would be willing to share? :) Thx
I have just purchased the template. When I open it in VS2017 I get the following messages:
Severity Code Description Project File Line Suppression State Error Package Abp.RedisCache 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.RedisCache 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.ProjectModel 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.ProjectModel 4.0.0-rtm-2283 supports: