public static Profit_ExpenceDAL WPF_to_DAL(Profit_ExpenceWPF_DTO profit_ExpanceWPF)
        {
            Profit_ExpenceDAL profit_ExpanceDAL = new Profit_ExpenceDAL()
            {
                Date_               = profit_ExpanceWPF.Date_,
                Sum                 = profit_ExpanceWPF.Sum,
                Description         = profit_ExpanceWPF.Description,
                Profit_Expance_Type = profit_ExpanceWPF.Profit_Expance_Type
            };

            return(profit_ExpanceDAL);
        }
        public static Profit_ExpenceWPF_DTO DAL_to_WPF(Profit_ExpenceDAL profit_ExpanceDAL)
        {
            Profit_ExpenceWPF_DTO profit_ExpanceWPF = new Profit_ExpenceWPF_DTO()
            {
                Date_               = profit_ExpanceDAL.Date_,
                Sum                 = profit_ExpanceDAL.Sum,
                Description         = profit_ExpanceDAL.Description,
                Profit_Expance_Type = profit_ExpanceDAL.Profit_Expance_Type
            };

            return(profit_ExpanceWPF);
        }
 public void Delete_Plan(Profit_ExpenceDAL expence, string login)
 {
     _service.Delete_Plan(ConverterProfitExpence.DAL_to_WCF(expence), login);
 }
 public void Save_New_Plan(Profit_ExpenceDAL new_plan, string Type, string login)
 {
     _service.Save_New_Plan(Converters.ConverterProfitExpence.DAL_to_WCF(new_plan), Type, login);
 }
 public void Save_New_Expence(Profit_ExpenceDAL new_expance, string Type, string login)
 {
     _service.Save_New_Expance(Converters.ConverterProfitExpence.DAL_to_WCF(new_expance), Type, login);
 }
 public void Delete_Profit(Profit_ExpenceDAL profit, string login)
 {
     _service.Delete_Profit(ConverterProfitExpence.DAL_to_WCF(profit), login);
 }
 public void Save_New_Profit(Profit_ExpenceDAL new_profit, string Type, string login)
 {
     _service.Save_New_Profit(ConverterProfitExpence.DAL_to_WCF(new_profit), Type, login);
 }