public static DistributionTotalCount_M ToViewModel(award_batch_instance batch_instance, award_batch batch, award_instance award_Instance, string batchinstanceid)
 {
     return(new DistributionTotalCount_M()
     {
         batch_name = batch.batchname,
         award_instance_name = award_Instance.instancename,
         batchinstanceid = batchinstanceid,
         batchid = batch_instance.batchid,
         instanceid = batch_instance.instanceid,
         total_count = batch_instance.total_count
     });
 }
Esempio n. 2
0
 public static AwardInstanceDistributionToOrg_M ToViewModel(string batchinstanceid, List <orgnization> allCollege, award_batch_instance batch_instance, List <org_award_instance> DistributionList)
 {
     return(new AwardInstanceDistributionToOrg_M()
     {
         DistributionList = DistributionList,
         batchinstanceid = batchinstanceid,
         allCollege = allCollege,
         batch_name = batch_instance.award_batch.batchname,
         total_count = batch_instance.total_count,
         award_name = batch_instance.award_instance.instancename
     });
 }