public override O7Response Client(string companyId, string branchId, string clientId)
        {
            var response = ClientDataService.Client(companyId, branchId, clientId);
            var mapper   = O7EntityMapper <ClientEntity> .Make(response);

            var clientEntity = mapper.MapTarget();

            return(O7SuccessResponse.MakeResponse(clientEntity));
        }
        public ActionResult Detail(string id)
        {
            var domain         = ProxyDomain.Instance.ClientDomain(User.Identity.Name, User.Password);
            var clientResponse = domain.Client(User.Company, User.Branch, id) as O7SuccessResponse <ClientEntity>;

            if (clientResponse == null)
            {
                return(Redirect(LinkHelper.SourceLink("Security", "Signout")));
            }
            var mapper = O7EntityMapper <ManagmentViewModel> .Make(clientResponse.Value1);

            var viewmodel = mapper.MapTarget();

            viewmodel.Action  = "3";
            ViewData["model"] = viewmodel;
            return(View("Managment"));
        }