BMC: Change DataType string to int For CompanyAccountId
This commit is contained in:
parent
838d149d52
commit
086ab86095
@ -323,7 +323,7 @@ namespace BCS.BMC.Controllers
|
||||
{
|
||||
var responseStream = await response.Content.ReadAsStringAsync();
|
||||
LoginOrRegisterResponseMessageModel result = JsonConvert.DeserializeObject<LoginOrRegisterResponseMessageModel>(responseStream);
|
||||
result.result.CompanyId = company.Id.ToString();
|
||||
result.result.CompanyId = company.Id;
|
||||
|
||||
var getTokenDetails = _firebaseToken.GetAllList().Where(x => x.HostName == host && x.UserId == int.Parse(result.result.userId)).FirstOrDefault();
|
||||
if (getTokenDetails is null)
|
||||
@ -388,7 +388,7 @@ namespace BCS.BMC.Controllers
|
||||
{
|
||||
var responseStream = await response.Content.ReadAsStringAsync();
|
||||
LoginOrRegisterResponseMessageModel result = JsonConvert.DeserializeObject<LoginOrRegisterResponseMessageModel>(responseStream);
|
||||
result.result.CompanyId = company.Id.ToString();
|
||||
result.result.CompanyId = company.Id;
|
||||
return Ok(result);
|
||||
}
|
||||
else if (response.StatusCode == HttpStatusCode.InternalServerError)
|
||||
|
@ -9,7 +9,7 @@ namespace BCS.BMC.Models.TokenAuth
|
||||
public class LoginInputModel
|
||||
{
|
||||
public string CompanyUrl { get; set; }
|
||||
public string CompanyId { get; set; }
|
||||
public int? CompanyId { get; set; }
|
||||
public string UsernameOrEmailAddress { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string FcmToken { get; set; }
|
||||
|
@ -23,7 +23,7 @@ namespace BCS.BMC.Models.TokenAuth
|
||||
public string employeeId { get; set; }
|
||||
public string phoneNo { get; set; }
|
||||
public string profilePictureId { get; set; }
|
||||
public string CompanyId { get; set; }
|
||||
public int? CompanyId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace BCS.BMC.Models.TokenAuth
|
||||
{
|
||||
public class RegistrationInput
|
||||
{
|
||||
public string CompanyAccountId { get; set; }
|
||||
public int? CompanyAccountId { get; set; }
|
||||
public string UserNameOrEmail { get; set; }
|
||||
public string Phoneno { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user