Example #1
0
        public static Cli.DepartmentModel ToClient(this Glo.Department obj)
        {
            Cli.DepartmentModel data = new Cli.DepartmentModel(obj.Department_name);
            data.Id = obj.Id;

            return(data);
        }
Example #2
0
 public static Glo.Department ToGlobal(this Cli.DepartmentModel obj)
 {
     return(new Glo.Department()
     {
         Id = obj.Id,
         Department_name = obj.Department_name
     });
 }