BMC: Change API path for UpdateBmcMessageStatus method
This commit is contained in:
parent
efbbfe29eb
commit
63a57f0537
@ -432,27 +432,6 @@ namespace BCS.BMC.Controllers
|
|||||||
return Ok("Success");
|
return Ok("Success");
|
||||||
}
|
}
|
||||||
|
|
||||||
//[HttpPost]
|
|
||||||
//public async Task<IActionResult> ForgotPasswordForBmcUser([FromBody] ForgotPasswordInput input)
|
|
||||||
//{
|
|
||||||
// using (HttpClient client = new HttpClient())
|
|
||||||
// {
|
|
||||||
// var baseUrl = input.CompanyUrl + "/api/services/bwac/employeeRegister/RegisterEmployeeAsNewUser";
|
|
||||||
|
|
||||||
// var data = new
|
|
||||||
// {
|
|
||||||
// userName = input.UserName,
|
|
||||||
// AppType = input.AppType
|
|
||||||
// };
|
|
||||||
// var requestJson = JsonConvert.SerializeObject(data);
|
|
||||||
// var requestContent = new StringContent(requestJson.ToString());
|
|
||||||
// requestContent.Headers.ContentType = new MediaTypeWithQualityHeaderValue("application/json");
|
|
||||||
// HttpResponseMessage response = await client.PostAsync(baseUrl, requestContent);
|
|
||||||
// return Ok("Success");
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
//----------------------
|
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IActionResult> GetBmcPhoneOrEmailByUserId([FromBody] ForgotPasswordInput input)
|
public async Task<IActionResult> GetBmcPhoneOrEmailByUserId([FromBody] ForgotPasswordInput input)
|
||||||
{
|
{
|
||||||
@ -471,7 +450,7 @@ namespace BCS.BMC.Controllers
|
|||||||
|
|
||||||
using (HttpClient client = new HttpClient())
|
using (HttpClient client = new HttpClient())
|
||||||
{
|
{
|
||||||
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/GetPhoneOrEmailByUserId";
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/GetPhoneOrEmailByUserId";
|
||||||
|
|
||||||
var data = new
|
var data = new
|
||||||
{
|
{
|
||||||
@ -523,7 +502,7 @@ namespace BCS.BMC.Controllers
|
|||||||
|
|
||||||
using (HttpClient client = new HttpClient())
|
using (HttpClient client = new HttpClient())
|
||||||
{
|
{
|
||||||
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/ForgotPassword";
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/ForgotPassword";
|
||||||
|
|
||||||
var data = new
|
var data = new
|
||||||
{
|
{
|
||||||
@ -565,7 +544,7 @@ namespace BCS.BMC.Controllers
|
|||||||
|
|
||||||
using (HttpClient client = new HttpClient())
|
using (HttpClient client = new HttpClient())
|
||||||
{
|
{
|
||||||
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/BmcAuthenticateForgotPasswordCode";
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/BmcAuthenticateForgotPasswordCode";
|
||||||
|
|
||||||
var data = new
|
var data = new
|
||||||
{
|
{
|
||||||
@ -604,7 +583,7 @@ namespace BCS.BMC.Controllers
|
|||||||
|
|
||||||
using (HttpClient client = new HttpClient())
|
using (HttpClient client = new HttpClient())
|
||||||
{
|
{
|
||||||
var baseUrl = input.CompanyUrl + "api/services/bwac/bmcUserForgotPassword/BmcResetPassword";
|
var baseUrl = input.CompanyUrl + "/api/services/bwac/bmcUserForgotPassword/BmcResetPassword";
|
||||||
|
|
||||||
var data = new
|
var data = new
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace BCS.BMC.Models.TokenAuth
|
namespace BCS.BMC.Models.TokenAuth
|
||||||
{
|
{
|
||||||
public class ForgotPasswordUserResponse : result
|
public class ForgotPasswordUserResponse
|
||||||
{
|
{
|
||||||
public string result { get; set; }
|
public string result { get; set; }
|
||||||
public string type { get; set; }
|
public string type { get; set; }
|
||||||
|
@ -209,7 +209,7 @@ namespace BCS.BMC.Web.Controllers
|
|||||||
foreach (var outputMessage in bmcMessageStatusInput)
|
foreach (var outputMessage in bmcMessageStatusInput)
|
||||||
{
|
{
|
||||||
// var companyDetails = _companyMasterService.GetAllList().Where(x => x.Url.Trim() == outputMessage.CompanyUrl.Trim()).FirstOrDefault();
|
// var companyDetails = _companyMasterService.GetAllList().Where(x => x.Url.Trim() == outputMessage.CompanyUrl.Trim()).FirstOrDefault();
|
||||||
baseUrl = outputMessage.CompanyUrl + "api/services/bwac/updateBmcMessageStatus/UpdateMessageStatus";
|
baseUrl = outputMessage.CompanyUrl + "/api/services/bwac/updateBmcMessageStatus/UpdateMessageStatus";
|
||||||
|
|
||||||
}
|
}
|
||||||
using (HttpClient client = new HttpClient())
|
using (HttpClient client = new HttpClient())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user