UserController: companyColor (ashek bhai)
This commit is contained in:
parent
f75d332d91
commit
f0c69201f5
|
|
@ -16,6 +16,7 @@ namespace cel.hrm.mobile.api.Controllers
|
|||
{
|
||||
string address = "";
|
||||
string companyName = "";
|
||||
string companyColor = "";
|
||||
try
|
||||
{
|
||||
string domain = string.Empty;
|
||||
|
|
@ -29,15 +30,18 @@ namespace cel.hrm.mobile.api.Controllers
|
|||
switch (domain)
|
||||
{
|
||||
case "celimited.com":
|
||||
address = "https://celbd.com/celhrmmobiletest/api/Mobile/";
|
||||
//address = "https://celbd.com/celhrmmobiletest/api/Mobile/";
|
||||
companyName = "CEL";
|
||||
companyColor = "red";
|
||||
//address = "http://100.100.100.15:45456/api/Mobile/";
|
||||
address = "https://celbd.com/petromaxHRUAT/api/Mobile/";
|
||||
break;
|
||||
|
||||
case "shvenergybd.com":
|
||||
//address = "https://celclouds.com/petromax/api/Mobile/";
|
||||
address = "https://celclouds.com/petromax/api/Mobile/";
|
||||
companyName = "Petromax";
|
||||
address = "http://100.100.100.19:45456/api/Mobile/";
|
||||
companyColor = "red";
|
||||
//address = "http://100.100.100.19:45456/api/Mobile/";
|
||||
//address = "https://celbd.com/petromaxHRUAT/api/Mobile/";
|
||||
break;
|
||||
|
||||
|
|
@ -47,6 +51,7 @@ namespace cel.hrm.mobile.api.Controllers
|
|||
case "lfmilesgroup.com":
|
||||
//address = "https://celclouds.com/lifungbd/api/Mobile/";
|
||||
companyName = "LF";
|
||||
companyColor = "red";
|
||||
address = "http://100.100.100.15:45457/api/Mobile/";
|
||||
break;
|
||||
|
||||
|
|
@ -54,32 +59,32 @@ namespace cel.hrm.mobile.api.Controllers
|
|||
case "HM.COM":
|
||||
case "arket.com":
|
||||
case "weekday.com":
|
||||
address = "https://bdpohr01.azurewebsites.net/api/Mobile/";
|
||||
//address = "https://bdpohr01.azurewebsites.net/api/Mobile/";
|
||||
companyName = "H&M";
|
||||
//address = "http://100.100.100.19:45455/api/Mobile/";
|
||||
companyColor = "blue";
|
||||
address = "https://celbd.com/hnmuat/api/Mobile/";
|
||||
break;
|
||||
|
||||
case "wartsila.com":
|
||||
address = "https://celclouds.com/WartsilaHR/api/Mobile/";
|
||||
//address = "https://celclouds.com/WartsilaHR/api/Mobile/";
|
||||
companyName = "Wartsila";
|
||||
//address = "http://100.100.100.19:45456/api/Mobile/";
|
||||
companyColor = "blue";
|
||||
address = "http://100.100.100.19:45456/api/Mobile/";
|
||||
break;
|
||||
|
||||
case "texebo-bd.com":
|
||||
//temporary
|
||||
if (DateTime.UtcNow > new DateTime(2026, 3, 11, 16, 0, 0))
|
||||
address = "https://hris.texebo-bd.net/texebohrms/api/Mobile/";
|
||||
else
|
||||
address = "https://celclouds.com/texebohrms/api/Mobile/";
|
||||
companyName = "Tex-Ebo";
|
||||
//address = "http://100.100.100.19:45457/api/Mobile/";
|
||||
companyColor = "blue";
|
||||
//address = "https://celbd.com/texebo/api/Mobile/";
|
||||
break;
|
||||
|
||||
case "duncanbd.com":
|
||||
address = "https://hrm.duncanbd.net/api/Mobile/";
|
||||
//address = "https://hrm.duncanbd.net/api/Mobile/";
|
||||
//address = "https://celclouds.com/texebohrms/api/Mobile/";
|
||||
companyName = "Duncan BD";
|
||||
//address = "http://100.100.100.19:45457/api/Mobile/";
|
||||
companyColor = "blue";
|
||||
address = "http://100.100.100.19:45457/api/Mobile/";
|
||||
break;
|
||||
|
||||
case "customdomain.com":
|
||||
|
|
@ -100,7 +105,7 @@ namespace cel.hrm.mobile.api.Controllers
|
|||
{
|
||||
return StatusCode(StatusCodes.Status500InternalServerError, e.Message);
|
||||
}
|
||||
return Ok("companyname#" + companyName + "#" + "address#" + address + "#");
|
||||
return Ok("companyname#" + companyName + "#" + "companyColor#" + companyColor + "#" + "address#" + address + "#");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user