Esempio n. 1
0
        public string ConvertRubToEur()
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");

            var operations = BankingSystemDBService.GetAllPersonOperations();

            foreach (var operation in operations)
            {
                operation.ConvertRubToEur(Code, Rate);
            }

            return(JsonConvert.SerializeObject(operations));
        }
Esempio n. 2
0
        public string GetPersonOperations()
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");

            return(JsonConvert.SerializeObject(BankingSystemDBService.GetAllPersonOperations()));
        }