Removed unused content editing models (#15855)
This commit is contained in:
@@ -45,18 +45,6 @@ public class ValidationErrorResult : ObjectResult
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Typically this should not be used and just use the ValidationProblem method on the base controller class.
|
||||
/// </summary>
|
||||
/// <param name="errorMessage"></param>
|
||||
/// <returns></returns>
|
||||
public static ValidationErrorResult CreateNotificationValidationErrorResult(string errorMessage)
|
||||
{
|
||||
var notificationModel = new SimpleNotificationModel { Message = errorMessage };
|
||||
notificationModel.AddErrorNotification(errorMessage, string.Empty);
|
||||
return new ValidationErrorResult(notificationModel);
|
||||
}
|
||||
|
||||
public override void OnFormatting(ActionContext context)
|
||||
{
|
||||
base.OnFormatting(context);
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
using System.Runtime.Serialization;
|
||||
using Umbraco.Cms.Core.Models.ContentEditing;
|
||||
|
||||
namespace Umbraco.Cms.Web.Common.Models;
|
||||
|
||||
[DataContract]
|
||||
public class DisabledUsersModel : INotificationModel
|
||||
{
|
||||
public List<BackOfficeNotification> Notifications { get; } = new();
|
||||
|
||||
[DataMember(Name = "disabledUserIds")]
|
||||
public IEnumerable<int> DisabledUserIds { get; set; } = Enumerable.Empty<int>();
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Umbraco.Cms.Web.Common.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model used for setting a new password for a user that has been invited to Umbraco.
|
||||
/// </summary>
|
||||
public class InvitePasswordModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the desired password for the user.
|
||||
/// </summary>
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "New password")]
|
||||
[StringLength(256)]
|
||||
public string NewPassword { get; set; } = null!;
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Umbraco.Cms.Web.Common.Models;
|
||||
|
||||
[DataContract]
|
||||
public class WebhookLogViewModel
|
||||
{
|
||||
[DataMember(Name = "key")]
|
||||
public Guid Key { get; set; }
|
||||
|
||||
[DataMember(Name = "webhookKey")]
|
||||
public Guid WebhookKey { get; set; }
|
||||
|
||||
[DataMember(Name = "statusCode")]
|
||||
public string StatusCode { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[DataMember(Name = "eventAlias")]
|
||||
public string EventAlias { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "url")]
|
||||
public string Url { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "retryCount")]
|
||||
public int RetryCount { get; set; }
|
||||
|
||||
[DataMember(Name = "requestHeaders")]
|
||||
public string RequestHeaders { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "requestBody")]
|
||||
public string RequestBody { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "responseHeaders")]
|
||||
public string ResponseHeaders { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "responseBody")]
|
||||
public string ResponseBody { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "exceptionOccured")]
|
||||
public bool ExceptionOccured { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user