изменения в клиенте
This commit is contained in:
parent
c8b2e6fdbb
commit
d95e6f8b9b
@ -10,10 +10,11 @@ namespace BeautySalonContracts.BindingModels
|
||||
|
||||
public string ClientFIO { get; set; } = string.Empty;
|
||||
|
||||
public string ClientPhone { get; set; } = string.Empty;
|
||||
|
||||
public string ClientEmail { get; set; } = string.Empty;
|
||||
|
||||
public string ClientPassword { get; set; } = string.Empty;
|
||||
|
||||
public string ClientPhone { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,8 @@
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? ClientLogin { get; set; }
|
||||
public string? ClientFIO { get; set; }
|
||||
public string? ClientFIO { get; set; }
|
||||
public string? ClientPhone { get; set; }
|
||||
public string? ClientEmail { get; set; }
|
||||
public string? ClientPassword { get; set; }
|
||||
}
|
||||
|
@ -18,13 +18,15 @@ namespace BeautySalonContracts.ViewModels
|
||||
[DisplayName("ФИО клиента")]
|
||||
public string ClientFIO { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Телефон клиента")]
|
||||
public string ClientPhone { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Почта клиента")]
|
||||
public string ClientEmail { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Пароль клиента")]
|
||||
public string ClientPassword { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Телефон клиента")]
|
||||
public string ClientPhone { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -4,8 +4,8 @@
|
||||
{
|
||||
string ClientLogin { get; }
|
||||
string ClientFIO { get; }
|
||||
string ClientPhone { get; }
|
||||
string ClientEmail { get; }
|
||||
string ClientPassword { get; }
|
||||
string ClientPhone { get; }
|
||||
}
|
||||
}
|
@ -18,7 +18,7 @@ namespace BeautySalonDatabaseImplement
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=PRETTYNAME;Initial Catalog=BeautySalonDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=ALYONA;Initial Catalog=BeautySalonDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ namespace BeautySalonDatabaseImplement.Models
|
||||
Id = model.Id,
|
||||
ClientLogin = model.ClientLogin,
|
||||
ClientFIO = model.ClientFIO,
|
||||
ClientPhone = model.ClientPhone,
|
||||
ClientEmail = model.ClientEmail,
|
||||
ClientPassword = model.ClientPassword,
|
||||
};
|
||||
@ -56,7 +57,8 @@ namespace BeautySalonDatabaseImplement.Models
|
||||
return;
|
||||
}
|
||||
ClientLogin = model.ClientLogin;
|
||||
ClientFIO = model.ClientFIO;
|
||||
ClientFIO = model.ClientFIO;
|
||||
ClientPhone = model.ClientPhone;
|
||||
ClientEmail = model.ClientEmail;
|
||||
ClientPassword = model.ClientPassword;
|
||||
}
|
||||
@ -66,6 +68,7 @@ namespace BeautySalonDatabaseImplement.Models
|
||||
Id = Id,
|
||||
ClientLogin = ClientLogin,
|
||||
ClientFIO = ClientFIO,
|
||||
ClientPhone = ClientPhone,
|
||||
ClientEmail = ClientEmail,
|
||||
ClientPassword = ClientPassword,
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ namespace BeutySalonClientApp.Controllers
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void Register(string login, string fio, string password, string email)
|
||||
public void Register(string login, string fio, string phone, string password, string email)
|
||||
{
|
||||
if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(fio) || string.IsNullOrEmpty(password) || string.IsNullOrEmpty(email))
|
||||
{
|
||||
@ -68,6 +68,7 @@ namespace BeutySalonClientApp.Controllers
|
||||
{
|
||||
ClientLogin = login,
|
||||
ClientFIO = fio,
|
||||
ClientPhone = phone,
|
||||
ClientEmail = email,
|
||||
ClientPassword = password
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user