using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using BLL.Services.System;
using BLL.Services.Mapper;
using Model.ViewModel.Edit;
using Model.ViewModel;

using Web.Models.Base;

namespace Web.Controllers.API
{

    public class EnviromentController 
        : Base.BaseApiController
    {
        class ViewModelItems : BaseApiResult
        {
            public string Enviromet { set; get; }

            public ViewModelItems(
                Base.BaseController controller,
                bool Successe,
                string ResMessage
                )
                : base(
                      controller,
                      Successe,
                      ResMessage
                      )
            { }

        }

        [HttpGet]
        public JsonResult Get()
        {
            string env = "Production";

# if DEBUG
            env = "Development";
#endif

            return new ViewModelItems(
                this,
                true,
                ""
                )
            { 
                Enviromet = env
            }
                .ToJson;
        }
    }
}