public async Task <IActionResult> ChangeMyPassword(int?partnerId, string password) { try { var session = this.GetPartnerSession(); int pid = partnerId ?? session.Id; var resp = await _repo.ChangeMyPassword("tr", pid, password); if (resp.Status == ResponseStatus.Error) { throw new Exception(resp.ErrorMessage); } return(Ok(this.CreateSuccess(resp.Data))); } catch (Exception e) { return(Ok(this.CreateError <string>(e.Message))); } }