first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Landmark.OLA.Models.Loan
|
||||
{
|
||||
|
||||
public class BranchNameData
|
||||
{
|
||||
[Required]
|
||||
[Range(minimum: 1, maximum: 99999999)]
|
||||
public int ChannelId { get; set; }
|
||||
|
||||
[Required]
|
||||
[RegularExpression("^[a-zA-Z ]*$")]
|
||||
[StringLength(150, ErrorMessage = "Branch Names must be less than 150 characters")]
|
||||
public string BranchName { get; set; }
|
||||
}
|
||||
|
||||
[BsonIgnoreExtraElements]
|
||||
public class BranchNameConfig : OlaModel
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[Required]
|
||||
public List<BranchNameData> BranchNamesByChannelId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user