/// <summary> /// Adds the map. /// </summary> /// <param name="input">The input.</param> /// <param name="userId">The user identifier.</param> /// <param name="userName">Name of the user.</param> /// <returns></returns> public override Project AddMap(AddProjectDto input, string userId, string userName) { return(new Project { ProjectName = input.ProjectName, UserID = userId, ContactName = input.ContactName, ContactEmail = input.ContactEmail, CreatedBy = userName, CreatedDateTime = ConvertTimeZone.ConvertFromUtcTimeZone("Central Standard Time"), ModifiedBy = userName, ModifiedDateTime = ConvertTimeZone.ConvertFromUtcTimeZone("Central Standard Time"), Active = true }); }
/// <summary> /// Updates the map. Map data from input objects to output /// </summary> /// <param name="input">The input.</param> /// <param name="output">The output.</param> /// <param name="userId">The user identifier.</param> /// <param name="userName">Name of the user.</param> public override void UpdateMap(AddProjectDto input, Project output, string userId = null, string userName = null) { base.UpdateMap(input, output, userId, userName); output.ModifiedDateTime = ConvertTimeZone.ConvertFromUtcTimeZone("Central Standard Time"); output.ModifiedBy = userName; }